package com.myspringmvc.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller
@RequestMapping("/requestParam")
public class RequestParamController {

    @RequestMapping("requestParamHello")
    public String requestParam(@RequestParam("name")String name){
        System.out.println("RequestParam:" + name);
        return "success";
    }


}
